<?php
namespace app\common\controller;
use think\Controller;
use think\Session;
class Login extends controller
{	
	          
   public function __construct()
	{
		 parent::__construct();
		 
		if (!Session::has('admin')) {
			$this->error('请先登录','admin/index/index');
		}	
	}



}
